package chapter3.No3_1_等待和通知机制.k通过管道进行线程间通信_字节流;

import java.io.PipedOutputStream;

/**
 * Created by Administrator on 2016/11/19.
 */
public class ThreadWrite extends Thread {
    WriteDate writeDate;
    PipedOutputStream pos;

    public ThreadWrite(WriteDate writeDate, PipedOutputStream pos) {
        this.writeDate = writeDate;
        this.pos = pos;
    }

    @Override
    public void run() {
        writeDate.writeMethod(pos);
    }
}
